package com.shy.config.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum BusinessEnum {
    SUCCESS(200, "成功"),
    FAILURE(-1, "失败"),
    /*token相关900-999*/
    TOKEN_ERROR(900, "token错误"),
    TOKEN_EXPIRED(901, "token过期"),
    TOKEN_NOT_EXIST(902, "token不存在"),
    TOKEN_NOT_VALID(903, "token无效"),
    TOKEN_NOT_LOGIN(904, "token未登录"),
    TOKEN_NOT_PERMISSION(905, "token无权限"),
    TOKEN_NOT_ROLE(906, "非法token"),
    TOKEN_NOT_USER(907, "token无用户"),
    ;
    private final Integer code;
    private final String msg;
}
